package edu.centenary.assignmenttracker;

public class Assignment implements Comparable{

	private String Name;
	private String date;
	private int priority;
	private boolean completed;
	private  String course;
	
	public Assignment(String Name, String date, int priority, boolean completed, String course) {
		this.Name = Name;
		this.date = date;
		this.priority = priority;
		this.completed = completed;
		this.course = course;
	}
	
	public Assignment(String string, String string2) {
		Name = "Bob";
		date = "07/24/91";
	}
	

	public String getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}

	public String getdate() {
		return date;
	}

	public void setdate(String date) {
		date = date;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public boolean isCompleted() {
		return completed;
	}

	public void setCompleted(boolean completed) {
		this.completed = completed;
	}

	public String getCourse() {
		return course;
	}

	public void setCourse(String course) {
		this.course = course;
	}

	
	public int compareTo(Object another) {
		if (another instanceof Assignment){
			return date.compareTo(((Assignment)another).date);
		}else{
			return -1;
		}
	}
	
	
	
}
